import QtQuick 2.0

//将 Receiver的Item 继承自刚创建的 Circle
Circle {
    id: receiver
    function receive(value)
    {
        contentText = value; //槽函数，收到数据时内容改变
        colornotify.running=true; //当触发时，同时改变按钮颜色
    }

    SequentialAnimation on circleColor
    { //创建动画
       id: colornotify
       running: false


       ColorAnimation {
           from: "red"
           to: "blue"
           duration: 200
       }

       ColorAnimation {
           from: "blue"
           to: "red"
           duration: 200
       }

    }
}

